package com.mba.service;

import java.util.List;

import com.mba.bean.Message;
import com.mba.webservice.MessageAPI;

public class MessageService {
	
	private static MessageService instance = null;
    
    private MessageService() {
    }

    public static MessageService getInstance() {
        if (instance == null) {
            instance = new MessageService();
        }
        return instance;
    }

	
	/**
	 * 取首页数据
	 * @param type 1:本地  2:社区
	 * @return
	 * @throws Exception 
	 */
	public List<Message>  getHomeTimeline(int type) throws Exception{
		
		MessageAPI msgApi = new MessageAPI();
		List<Message> msglist  = msgApi.getHomeTimeline("1");
				
		return msglist;
		
	}
	
	
	
	
	
	
}
